from parse.ExcelCaseParser import excel_case_parser
from parse.YamlCaseParser import yaml_case_parser


def case_parser(case_type,case_dir):
    """
    :param case_type: 用例的类型 yaml/excel
    :param case_dir: 用例的路径
    :return:
    """
    if case_type == "yaml":
        return yaml_case_parser(case_dir)
    if case_type == "excel":
        return excel_case_parser(case_dir)
    return {"case_name":[],"cases_info":[]}